package com.canomo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2018/7/4.
 */
@Controller
@RequestMapping("ftl")
public class ViewController {

    @RequestMapping("index")
    public ModelAndView init() {
        ModelAndView modelAndView = new ModelAndView("index");
        modelAndView.addObject("message","Hello Freemarker");
        return modelAndView;
    }
}
